package cz.muni.fi.pa036is.utilities;

import java.sql.Timestamp;
import java.util.Calendar;
import org.springframework.stereotype.Service;

/**
 *
 * @author Shebik
 */
@Service
public class TimeService {
    
    private TimeService() {
    }

    public static Timestamp getCurrentTimestamp() {
        final Calendar calendar = Calendar.getInstance();
        return new Timestamp(calendar.getTime().getTime());
    }

}
